Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change command line options #173

Merged
merged 4 commits into from
Oct 11, 2020

Commits on Oct 10, 2020

  1. Add -b BRANCH argument to the compare and restore commands

    Adding an optional -b BRANCH argument to build_examples.py to enable
    comparing to and restoring from any branch or commit. That will help
    when e.g. reversing an unfortunate commit of generated files.
    
    This solves part 2 of issue wireviz#167.
    kvid committed Oct 10, 2020
    Configuration menu
    Copy the full SHA
    2c54dc4 View commit details
    Browse the repository at this point in the history
  2. Add diff as an alias to the compare command

    When used to "git diff", it is easy to write "build_examples.py diff"
    instead of "build_examples.py compare" by a mistake. Therefore,
    "diff" is now an alias to "compare" so both commands will work.
    
    This solves part 3 of issue wireviz#167.
    kvid committed Oct 10, 2020
    Configuration menu
    Copy the full SHA
    5f247b3 View commit details
    Browse the repository at this point in the history
  3. Comment out unimplemented command line option

    It seems, that the current implementation ignores --generate-bom,
    and that parser.add_argument() code line is therefore commented
    out until it gets implemented to avoid any confusion.
    
    This solves part 1 of issue wireviz#167.
    kvid committed Oct 10, 2020
    Configuration menu
    Copy the full SHA
    9236d89 View commit details
    Browse the repository at this point in the history
  4. Add command line options to show version number

    Add -V command line option (and --version as an alias) to
    both wireviz.py and build_examples.py that show version number.
    
    Move the version number from setup.py into __init__.py to access
    the same version number specification from all files needing it.
    
    This solves part 4 of issue wireviz#167.
    kvid committed Oct 10, 2020
    Configuration menu
    Copy the full SHA
    26e0aed View commit details
    Browse the repository at this point in the history