Parse Program Arguments #11

Closed
opened 2023-06-28 22:13:04 +02:00 by MarieEckert · 2 comments
MarieEckert commented 2023-06-28 22:13:04 +02:00 (Migrated from github.com)

Parse mariebuilds command line arguments according to the spec:

    e exec
        Execute a specific script from the build file
    c check
        Check if the given mb file is valid
    i in
        Specify a file to be used. This is not required as mb will look for
        a mb file named "build.mb" by default.
    p platform
        Specify the targeted platforms name
    d disable-extensions
        Disable all extensions. Can not be overriden in the extensions section
    q quiet
        Disable all output from mb, only output from scripts will be allowed
    v verbose
        Enable verbose output from mb
Parse mariebuilds command line arguments according to the spec: ``` e exec Execute a specific script from the build file c check Check if the given mb file is valid i in Specify a file to be used. This is not required as mb will look for a mb file named "build.mb" by default. p platform Specify the targeted platforms name d disable-extensions Disable all extensions. Can not be overriden in the extensions section q quiet Disable all output from mb, only output from scripts will be allowed v verbose Enable verbose output from mb ```
MarieEckert commented 2023-06-29 11:54:17 +02:00 (Migrated from github.com)

Refer to this stack-overflow post for the usage of argp

Refer to [this stack-overflow post](https://stackoverflow.com/questions/9642732/parsing-command-line-arguments-in-c) for the usage of `argp`
MarieEckert commented 2023-06-29 19:50:28 +02:00 (Migrated from github.com)

Implement with commit 18215cf

Implement with commit [18215cf](https://github.com/FelixEcker/mariebuild/commit/18215cf4bbfa4ba6f37afc27ef3f31414ed376ce)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marie/mariebuild#11
No description provided.