skejeton / umka-args

1 stars 1 forks source link

Specifying flags before modes #2

Open marekmaskarinec opened 5 months ago

marekmaskarinec commented 5 months ago

Taking the arguments for UmBox, I would expect it to be possible to specify -d or -u before the mode, but it is only possible to put it after the mode.

UmBox v1.3 - an Umka package manager

Arguments:
    --debug, -d             - Enable debug mode 
    --url, -u   <str>       - Specify server URL (default: "https://umbox.tophat2d.dev/")
    --help, -h              - Show this help message 

Modes:
    build    - Build a box.tar
    init     - Initialize a box
    install  - Install a box
    remove   - Remove a box
    run      - Run a command inside the UmBox env
    search   - Search for a box online
    update   - Update all dependencies
    register - Register a box
    upload   - Upload data to an online box
skejeton commented 3 months ago

This will require a bit of rework since the modes are parsed in an immediate fashion.