Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L ldpl
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lartu
  • ldpl
  • Merge requests
  • !34

Merged
Created Apr 02, 2019 by Lartu@lartu🐕Maintainer

Add -o option to compiler that allows naming the output binary

  • Overview 1
  • Commits 1
  • Changes 2

Created by: dvkt

Note that it needs an =, just like the -i flag.

Example:

$ ldpl ../examples/99bottles.ldpl
LDPL: Compiling...
* File(s) compiled successfully.
* Saved as ldpl-output-bin
$ ldpl -o=99b ../examples/99bottles.ldpl
LDPL: Compiling...
* File(s) compiled successfully.
* Saved as 99b
$ ./99b
99 bottles of beer on the wall,
99 bottles of beer.
Take one down, pass it around,
98 bottles of beer on the wall...

Updated -h:

$ ldpl -h                                                                             ☰ ~/Code/ldpl/ldpl/src:o-flag
Usage: ldpl [options] file [arguments]
Options:
  -h --help                Display this information
  -r                       Display generated C++ code
  -o=<name>                Set output file for compiled binary
  -i=<file>                Include file in current compilation
  -v --version             Display LDPL version information
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: github/fork/dvkt/o-flag